<template>
  <div id="app">
    <router-view></router-view>
   <TabBar>
<TabBarItem path="/page1">
  <img src="./assets/img/home.svg" slot="item-icon">
   <img src="./assets/img/home_active.svg" slot="item-icon-active">
  <div slot="item-text"> 首页</div>
</TabBarItem>
<TabBarItem path="/page2">
  <img src="./assets/img/category.svg" slot="item-icon">
   <img src="./assets/img/category_active.svg" slot="item-icon-active">
  <div slot="item-text">分类</div>
</TabBarItem>
<TabBarItem path="/page3">
  <img src="./assets/img/shopcart.svg" slot="item-icon">
  <img src="./assets/img/shopcart_active.svg" slot="item-icon-active">
  <div slot="item-text">购物车</div>
</TabBarItem>
<TabBarItem path="/page4">
  <img src="./assets/img/profile.svg" slot="item-icon">
   <img src="./assets/img/profile_active.svg" slot="item-icon-active">
  <div slot="item-text">我的</div>
</TabBarItem>
   </TabBar>
  </div>
</template>

<script>
import TabBar from "./components/TabBar.vue";
import TabBarItem from "./components/TabBaritem.vue";
export default {
  name: 'App',
components:{
   TabBar,TabBarItem
}
}
</script>

<style>

</style>
